<f:layout name="Admin" />

This Template is responsible for displaying a single view for a domain
object If you modify this template, do not forget to change the
overwrite settings in /Configuration/Kickstarter/settings.yaml:
Resources: Private: Templates: Show.html: keep Otherwise your changes
will be overwritten the next time you save the extension in the
kickstarter

<f:section name="main">

	<div class="csc-header csc-header-n1">
		<h2 class="csc-firstHeader">Kursstamm Kursnr: {kursstamm.kursNr}</h2>
	</div>
	<f:flashMessages />

	<div class="trcontainer">

		<table class="currtable"
			style="border-collapse: collapse; width: 70%; margin-bottom: 0.5em;">
			<tr>
				<td width="60"><b>Kursnr:</b>
				</td>
				<td>{kursstamm.kursNr}</td>
			</tr>
			<tr>
				<td ><b>Titel:</b>
				</td>
				<td>{kursstamm.titel}</td>
			</tr>
			<tr>
				<td width="60">Modul:</td>
				<td>{kursstamm.modul.code} - {kursstamm.turnus}</td>
			</tr>
			<tr>
				<td width="60">UE:</td>
				<td>{kursstamm.ue}</td>
			</tr>
			<tr>
				<td width="60">Gegenstandskatalog:</td>
				<td>nicht verfügbar</td>
			</tr>
		</table>
		<h2>Kurse dieses Stammes</h2>
		<table class="currtable"
			style="border-collapse: collapse; width: 100%; margin-bottom: 0.5em;">
			<tr>
				<th>Version</th>
				<th>Titel</th>
				<th>Dozent</th>

				<f:for each="{kursstamm.kurse}" as="kurs">
					<tr>
						<td>{kurs.version}</td>
						<td><f:link.action controller="Kurs" action="adminshow"
								arguments="{kurs : kurs}"><f:if condition="{kurs.inaktiv}"><f:then><span style="text-decoration: line-through;">{kurs.titel}	</span></f:then><f:else>{kurs.titel}</f:else></f:if></f:link.action>
						</td>
						<td>{kurs.dozent.name}</td>

					</tr>
				</f:for>
		</table>
			<f:link.action action="edit" arguments="{kursstamm:kursstamm}">Kursstamm bearbeiten</f:link.action> | <f:link.action controller="Kurs" action="new" arguments="{kursstamm:kursstamm}">Neue Kursversion</f:link.action>
	</div>
	<f:link.action action="adminlist">Zurück zur Liste</f:link.action>
	<br />

</f:section>